import "./tsddty.css";

import { getData } from "../../../../api/getData";
import render from "./items.art";
const tsddtyUrl = "https://www.imooc.com/api/mall-PC/index/local_exp";
const tsddtyPanel = document.querySelector("#tsddty");

getData(tsddtyUrl)
  .then((res) => {
    const html = render({ data: res });
    tsddtyPanel.innerHTML = html;
  })
  .catch((err) => console.log(err));
